<?php $t = isset($t)?$t:'error';?>
<?php $link = $this->Html->url('/',true).'img/ucenter/correct.gif'?>
<div id = 'flashMessage' class="<?php echo $t;?>" style ="z-index:9999;display:none;position:absolute;background:#fff;">
	<p style = "background:url(<?php echo $link?>) no-repeat left center;margin:0;">
		<?php echo $message; ?>
	</p>
</div>
<script>
jQuery().ready(function(){
	var staTar = jQuery(window);
	var width = jQuery(window).width();
	var height = jQuery(window).height();
	jQuery("#flashMessage")
		.css({
			'top':height/2-50,
			'left':width/2-150})
			.fadeIn(800);
	setTimeout("hideTips()",3000);
	
});
hideTips = function(){
	jQuery("#flashMessage").fadeOut(500);
};
</script>